package com.js.basic.api.model;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 编码规则对象 bs_code_rules
 * 
 * @author lzq
 * @date 2024-06-14
 */
public class CodeRules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编码规则主键 */
    private Long encoId;

    /** 目标表单 */
    @Excel(name = "目标表单")
    private String tableExplain;

    /** 表名 */
    @Excel(name = "表名")
    private String tableName;

    /** 自定义前缀 */
    @Excel(name = "自定义前缀")
    private String tableCode;

    /** 时间规则 */
    @Excel(name = "时间规则")
    private String dateRule;

    /** 流水号 */
    @Excel(name = "流水号")
    private Long serialNumber;

    /** 步长 */
    @Excel(name = "步长")
    private Long step;

    /** 编号生成规则 */
    @Excel(name = "编号生成规则")
    private String encodeRule;

    /** 当前编码规则 */
    @Excel(name = "当前编码规则")
    private String encodeNow;

    /** 操作人 */
    @Excel(name = "操作人")
    private String createName;

    public void setEncoId(Long encoId) 
    {
        this.encoId = encoId;
    }

    public Long getEncoId() 
    {
        return encoId;
    }
    public void setTableExplain(String tableExplain) 
    {
        this.tableExplain = tableExplain;
    }

    public String getTableExplain() 
    {
        return tableExplain;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }
    public void setTableCode(String tableCode) 
    {
        this.tableCode = tableCode;
    }

    public String getTableCode() 
    {
        return tableCode;
    }
    public void setDateRule(String dateRule) 
    {
        this.dateRule = dateRule;
    }

    public String getDateRule() 
    {
        return dateRule;
    }
    public void setSerialNumber(Long serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public Long getSerialNumber() 
    {
        return serialNumber;
    }
    public void setStep(Long step) 
    {
        this.step = step;
    }

    public Long getStep() 
    {
        return step;
    }
    public void setEncodeRule(String encodeRule) 
    {
        this.encodeRule = encodeRule;
    }

    public String getEncodeRule() 
    {
        return encodeRule;
    }
    public void setEncodeNow(String encodeNow) 
    {
        this.encodeNow = encodeNow;
    }

    public String getEncodeNow() 
    {
        return encodeNow;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("encoId", getEncoId())
            .append("tableExplain", getTableExplain())
            .append("tableName", getTableName())
            .append("tableCode", getTableCode())
            .append("dateRule", getDateRule())
            .append("serialNumber", getSerialNumber())
            .append("step", getStep())
            .append("encodeRule", getEncodeRule())
            .append("encodeNow", getEncodeNow())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .toString();
    }
}
